package day01;

/**
 * @author feng
 * @Date 2021/10/13 8:15
 */
public class ThreadTest extends Thread {
    public static void main(String[] args) {
        ThreadTest t1 = new ThreadTest();
        ThreadTest t2 = new ThreadTest();
        t1.setName("t1");
        t2.setName("t2");
        t1.start();
        t2.start();


    }


    public void run(){
        System.out.println("当前线程="+Thread.currentThread().getName());
    }


}
